Repository navigation
Conversation
steinkel
force-pushed
the
feature/upgrade-cakephp-5-4-pr
branch
2 times, most recently
from
October 19, 2026 14:55
c72ef7a to
f2c6563
Compare
steinkel
marked this pull request as ready for review
October 19, 2026 15:18
steinkel
force-pushed
the
feature/upgrade-cakephp-5-4-pr
branch
4 times, most recently
from
October 19, 2026 16:33
1c13216 to
a109201
Compare
- Update CakePHP to 5.4, Authentication to 4.2, Authorization to 3.5 and Migrations to 5.2, requiring PHP 8.2 or higher - Align the base files with the cakephp/app 5.4 skeleton and re-bake the models, entities and templates - Add the tag and user policies and make the public actions explicit in each controller - Use sortable fields in the articles list and redirectAfterLogin in the login - Add tests and fixtures for the articles, tags, users and policies, plus the PHPStan configuration and a CI workflow
steinkel
force-pushed
the
feature/upgrade-cakephp-5-4-pr
branch
from
October 19, 2026 16:42
a109201 to
51daab6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade the CMS tutorial to CakePHP 5.4
Dependencies
>=8.2, the minimum of CakePHP 5.4. Thecomposer.lockis removed, like in thecakephp/appskeleton, so every install resolves versions for its own PHP.^11.5.3 || ^12.1.3 || ^13.0) and PHPStan are now dev dependencies (neither was declared before).Breaking changes handled
AbstractIdentifier::CREDENTIAL_*constants moved toPasswordIdentifier, and identifiers need an explicitclassName.AbstractMigrationis replaced byBaseMigration.IntegrationTestCasewas removed, so tests useTestCasewithIntegrationTestTrait.Aligned with
cakephp/app5.4.0bin,config,webroot, layouts, error and flash templates,phpcs.xml,phpstan.neon, CI workflow) now match the skeleton.Application, routes, plugins (config/plugins.php) andAppControllerare merged with the tutorial's authentication and authorization code.Fixes
TagsControllerand most ofUsersControllernever calledauthorize()orskipAuthorization(). Each controller now declares its own public actions, and there are newTagPolicy,UserPolicyandUsersTablePolicyclasses./articles/tagged/*required a login.Article.slugwas reported as required bynewEntity()although it is derived from the title.Users::loginusesredirectAfterLogin()./articles/tagged/a/bonly used the first tag, the action now takesstring ...$tags.Permissions
Modernization
strict_types,Collection::implode()(5.4),Form->deleteLink()(5.2), theAuthentication.Identityhelper in the templates,__()in the templates and pagination in the articles list.config/app_local.example.phpkeeps the SQLite default.Tests and checks
composer test,composer cs-checkandcomposer stanpass on PHP 8.2, 8.3, 8.4 and 8.5.